<%@ page contentType="text/html; charset=utf-8" language="java" import="java.util.*" pageEncoding="utf-8" errorPage="" %>
<%@ page import="club325.webchat.model.ComplainBean" %>
<%@ page import="club325.webchat.servlet.admin.AdminManager" %>
<%@ page session="false" %>

<%
	List<ComplainBean> complainList = null;
	complainList = AdminManager.getAllComplain();
	
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/frame.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Keywords" content="Microblog,Vioce,blog" />
<meta http-equiv="Description" content="Voice Microblog" />

<!-- InstanceBeginEditable name="doctitle" -->
<title>查看投诉</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<link href="/Microblog/styles/admin_complaint.css" rel="stylesheet" type="text/css" />
<!-- InstanceEndEditable -->
<link href="/Microblog/styles/global.css" rel="stylesheet" type="text/css" />
<link href="/Microblog/styles/blank.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="main">
<!-- InstanceBeginEditable name="EditRegion_main" -->
  <h1>查看投诉...</h1>
    <table width="570" border="0" cellspacing="0" cellpadding="0" class="message_box">
      <tr>
        <th width="127" scope="col">投诉人</th>
        <th width="127" scope="col">被投诉人</th>
        <th width="252" scope="col">内容</th>
        <th width="62" scope="col">操作</th>
      </tr>
      <%
    	if (complainList == null || complainList.isEmpty()) {
      %>
      <tr>
       	<td colspan="4">暂无信息</td>
      </tr>
      <%
    	} else {
    		for (ComplainBean com : complainList) {
      %>
      <tr>
        <td><%= com.getComplainOwner() %></td>
        <td><%= com.getComplainObject() %></td>
        <td><a href="#"><%= com.getShortTheme() %></a></td>
        <td><a href="#">删除</a></td>
      </tr>
      <%
    		}
    	}
      %>
    </table>
  <div id="bottom"></div>
<!-- InstanceEndEditable -->
</div>
</body>
<!-- InstanceEnd --></html>
